package com.hms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * 基础数据实体类
 * <p>
 * Copyright: Copyright (c) 2013-4-13 上午10:44:41
 * <p>
 * Company: 北京宽连十方数字技术有限公司
 * <p>
 * 
 * @author wangpz@c-platform.com
 * @version 1.0.0
 */
@Entity
@Table(name = "td_commondata")
public class TdCommonData extends BaseEntity {

	/** serialVersionUID */
	private static final long serialVersionUID = 1L;

	// 基础数据类型
	public enum CommonDataType {
		// 1:客户类型 2;收支状态 3:职能类别 4:职位类别 5:项目提成 6:项目状态7:寻访途径 8:甄选状态
		customerType, runBalance, functionalCategory, jobCategory, projectStatus, searchWay, selectStatus;
	}

	// 数据类型
	private CommonDataType dataType;

	// 数据值
	private String dataValue;

	// 描述
	private String desc;

	/**
	 * 数据类型
	 * 
	 * @return
	 */
	@Enumerated
	@Column(name = "datatype", nullable = false)
	public CommonDataType getDataType() {
		return dataType;
	}

	public void setDataType(CommonDataType dataType) {
		this.dataType = dataType;
	}

	@Column(name = "datatvalue", nullable = false)
	public String getDataValue() {
		return dataValue;
	}

	public void setDataValue(String dataValue) {
		this.dataValue = dataValue;
	}

	@Column(name = "desc")
	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}
